<template>
  <div class="hoting">
    <movie-list
      v-for="(h_item, index) in hotList"
      :mitem="h_item"
      :key="index"
    ></movie-list>
  </div>
</template>

<script>
import movieList from './movieList.vue'
import axios from 'axios'

export default {
  name: 'hoting',
  data () {
    return {
      hotList: []
    }
  },
  created () {
    axios
      .get('http://www.softeem.xin/maoyanApi/ajax/movieOnInfoList')
      .then(res => {
        this.hotList = res.data.movieList
      })
  },
  components: {
    movieList
  }
}
</script>

<style>

</style>
